/*
 * 消息队列信息
 */
Ext.define('MyApp.model.AppMqModel', {
    extend: 'Ext.data.Model',
    fields: [{
        name: 'id'
    },{
        name:'appId' //应用id
    },{
        name:'queueNumber' //队列编号
    },{
        name:'queueName' //队列名称
    },{
        name:'queueType' //队列类型
    },{
        name:'queuePriority' //队列优先级
    },{
        name: 'createTime',//mq创建时间
        type: 'date',
        convert: function(v, record){
        	if(!Ext.isEmpty(v)){
        		return new Date(v);
        	}else{
        		return null;
        	}
        }
    },{
        name: 'lastUpdateTime',//mq更新时间
        type: 'date',
        convert: function(v, record){
        	if(!Ext.isEmpty(v)){
        		return new Date(v);
        	}else{
        		return null;
        	}
        }
    },{
        name: 'endTime',//mq删除时间
        type: 'date',
        convert: function(v, record){
        	if(!Ext.isEmpty(v)){
        		return new Date(v);
        	}else{
        		return null;
        	}
        }
    },{
		name: 'isDeleted',//是否启用
		type: 'boolean'
	}]
});